<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/22
 * Time: 8:59
 */

namespace app\api\model;


class CommentImage extends BaseModel
{
//    protected $visible = ['img'];
    public function getImgAttr($value,$data){
        $finalUrl = $value;
        if($data['img_origin'] == 0){
            $finalUrl = config('setting.img_prefix').$value;
        }
        return $finalUrl;
    }
}